package com.luwanglin.serviceimpl;

import com.luwanglin.annotation.RpcService;
import com.luwanglin.service.Hello;
import com.luwanglin.service.HelloService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author lwl
 */
@RpcService(group = "lwl", version = "1.0")
@Slf4j
public class HelloServiceImpl1 implements HelloService {
    static {
        System.out.println("HelloServiceImpl1被创建了");
    }

    @Override
    public String hello(Hello hello) {
        log.info("HelloServiceImpl1收到，{}", hello.getMessage());
        String result = "Hello description is  " + hello.getDescription();
        log.info("HelloServiceImpl1 返回的：{}", result);
        return result;
    }

}
